package com.lingx.service.query;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.lingx.model.IContext;
import com.lingx.model.IPerformer;
import com.lingx.model.impl.DefaultField;
import com.lingx.utils.Utils;

@Component
public class EntityConfigCondition implements IGridCondition{
	@Override
	public String getCondition(Map<String, Object> params, IContext context, IPerformer performer) {
		String sql=context.getEntity().getScript();
		if(Utils.isNotNull(sql)) {
			return sql;
		}
		return "";
	}
}
